<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加公告</title>
<script type="text/javascript" src="../js/date.js"></script>
<link rel="stylesheet" rev="stylesheet" href="../css/style.css" type="text/css" media="all" />

<script language="JavaScript" type="text/javascript">
	function check(){
			if(document.getElementById("reportTitle").value == "") {
				alert("请输入公告标题");
				document.getElementById("reportTitle").focus();
				return false;
			}
			if(document.getElementById("createdate").value == "") {
				alert("请输入发布时间");
				document.getElementById("createdate").focus();
				return false;
			}
			if(document.getElementById("report").value == "") {
				alert("请选择公告内容");
				document.getElementById("report").focus();
				return false;
			}
			return true;
		}

	function cancel(){
			var url = "D:\软件项目管理后台免费模板\index.html" ;
			window.location.assign( url );
		}

</script>

<style type="text/css">
<!--
.atten {font-size:12px;font-weight:normal;color:#F00;}
-->
</style>
</head>

<body>
<div class="MainDiv">
  <form action="index.html" name="form1" onSubmit="return check();">
  <table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
    <tr>
      <th class="tablestyle_title" >公告查看页面</th>
    </tr>
        <tr>
          <td width="100%"><fieldset style="height:100%;">
            <legend>查看公告 </legend>
            <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
              <tr>
                <td nowrap="nowrap" align="right" width="13%">公告标题:</td>
                <td width="41%"><input name="reportTitle" class="text" style="width:250px" type="text" size="40" value="公告一" /></td>
                <td align="right" width="19%">&nbsp;</td>
                <td width="27%">&nbsp;</td>
              </tr>
              <tr>
              	<td nowrap="nowrap" align="right" width="13%">发布时间:</td>
                <td width="41%"><input type="text" name="date" value="2011-5-4"></td>
                <td align="right" width="19%">&nbsp;</td>
                <td width="27%">&nbsp;</td>
              </tr>
              <tr>
                <td nowrap="nowrap" align="right" height="10px">公告内容:</td>
                <td colspan="3"><textarea id="textarea" name="report" rows="5" cols="80">通知：今天不用上课了！！</textarea></td>
              </tr>
            </table>
            <br />
          </fieldset></td>
        </tr>
        <TR>
			<TD colspan="2" align="center" height="50px">
			  <input type="submit" value="保存">
			  <input type="button" value="取消" onclick="cancel();">
              </TD>

		</TR>
  </table>
  </form>
</div>
</body>
</html>
